package com.qqcy.loginservice.service.impl;

import com.qqcy.loginservice.mapper.UserMapper;
import com.qqcy.loginservice.pojo.User;
import com.qqcy.loginservice.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * DATE: 2022/1/10
 * Author: huhuan
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public User findById(Integer uid) {
        return userMapper.findById(uid);
    }

    @Override
    public List<User> findAllUser() {
        return userMapper.findAllUser();
    }
}
